package com.handinglian.ai.record.mapper;

import com.handinglian.ai.record.entity.MessageRecord;

import java.util.Date;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface MessageRecordMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(MessageRecord record);

    int insertOrUpdate(MessageRecord record);

    int insertOrUpdateSelective(MessageRecord record);

    int insertSelective(MessageRecord record);

    MessageRecord selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(MessageRecord record);

    int updateByPrimaryKey(MessageRecord record);

    int updateBatch(List<MessageRecord> list);

    int batchInsert(@Param("list") List<MessageRecord> list);

    List<MessageRecord> list(@Param("nameOrPhone")String nameOrPhone, @Param("startTime") Date startTime, @Param("endTime")Date endTime);

}